package com.yihu.cms.service;

import java.io.IOException;

import com.yihu.cms.dataService.hessian.interfaceService.ArtworkModelHService;
import com.yihu.dataService.hessian.resource.ResourceMongoDBManager;
import com.yihu.web.bean.ArtworkModel;
import com.yihu.web.bean.vo.ArtworkQuery;


public class ArtworkModelService{
	ArtworkModelHService service = null;
	public ArtworkModelService(){
		try {
			service= (ArtworkModelHService)ResourceMongoDBManager
					.getSingleton().getBeans("artworkModelServiceHSC");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public Object addArtworkModel(ArtworkModel a){
		return service.addArtworkModel(a);
	}
	public Object delArtworkModel(String id){
		return service.deleteArtworkModel(id);
	}
	public Object updateArtworkModel(ArtworkModel a){
		return service.updateArtworkModel(a);
	}
	public Object findArtworkModel(String id){
		return service.getArtworkModel(id);
	}
	public Object getArtworkModels(ArtworkQuery query){
		return service.getArtworkModels(query);
	}
}
